﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><{$title}></title>
<link href="__PUBLIC__/css/bootstrap.min.css" type="text/css" rel="stylesheet">
<link href="__PUBLIC__/css/style.css" type="text/css" rel="stylesheet">
<link type="text/css" href="__PUBLIC__/css/nprogress.css" rel="stylesheet">
<link type="text/css" href="__PUBLIC__/my.css" rel="stylesheet">
<!--[if lt IE 9]>
    <script src="__PUBLIC__/js/html5shiv.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/js/respond.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/js/selectivizr-min.js" type="text/javascript"></script>
<![endif]-->
<link rel="apple-touch-icon-precomposed" href="__PUBLIC__/images/icon/icon.png">
<link rel="shortcut icon" href="__PUBLIC__/images/icon/icon.ico">
<block name="css">
<!-- 引入导航的css和jquery -->
<link href="__PUBLIC__/nav/css/nav.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/nav/js/jquery.min.js"></script>
</block>
<block name="classify">
</block>
<!-- /导航的css和jquery -->
<meta name="Keywords" content="" />
<meta name="description" content="" />
<script type="text/javascript">
//判断浏览器是否支持HTML5
window.onload = function() {
  if (!window.applicationCache) {
    window.location.href="ie.html";
  }
}
</script>
</head>

<body>

<section class="container user-select">
    <div id="nav_main1">
      <div class="inner1">
        <div class="inner2">
          <div id="nav_main_bar">
            <ul>
              <li class="current">
                <div class="bm">
                  <div class="inner">
                    <div class="inner3">
                      <div class="inner4"><a href="<{:U('Index/index')}>">首页<br>Home</a></div>
                    </div>
                  </div>
                </div>
              </li>
              
              <li>
                <div class="bm">
                  <div class="inner">
                    <div class="inner3">
                      <div class="inner4"><a href="<{:U('Classify/index?id=56')}>">分类<br>Category</a></div>
                    </div>
                  </div>
                </div>
                <div class="lm">
                  <div class="inner5">
                    <div class="inner6">
                      <ul>
                        <li><a href="<{:U('Classify/index?id=56')}>">美食/营养</a> </li>
                        <li><a href="<{:U('Classify/index?id=57')}>">手工/爱好</a> </li>
                        <li><a href="<{:U('Classify/index?id=58')}>">健康/养生</a> </li>
                        <li><a href="<{:U('Classify/index?id=59')}>">职场/理财</a> </li>
                        <li><a href="<{:U('Classify/index?id=60')}>">母婴/教育</a> </li>
                        <li><a href="<{:U('Classify/index?id=61')}>">游戏/数码</a> </li>
                        <li><a href="<{:U('Classify/index?id=62')}>">生活/家居</a> </li>
                        <li><a href="<{:U('Classify/index?id=63')}>">运动/户外</a> </li>
                        <li><a href="<{:U('Classify/index?id=64')}>">情感/交际</a> </li>
                        <li><a href="<{:U('Classify/index?id=65')}>">时尚/美容</a> </li>
                      </ul>
                    </div>
                  </div>
                </div>
              </li>

              <li>
                <div class="bm">
                  <div class="inner">
                    <div class="inner3">
                      <div class="inner4"><a href="<{:U('Show/index')}>">分享达人秀<br>Show-man</a></div>
                    </div>
                  </div>
                </div>
              </li>

              <li>
                <div class="bm">
                  <div class="inner">
                    <div class="inner3">
                      <div class="inner4"><a href="<{:U('Experience/index')}>">发布经验<br>Share</a></div>
                    </div>
                  </div>
                </div>
              </li>

              <li>
                <div class="bm">
                  <div class="inner">
                    <div class="inner3">
                      <div class="inner4"><a href="<{:U('Pers/index')}>">个人中心<br>My-center</a></div>
                    </div>
                  </div>
                </div>
              </li>

            </ul>
          </div>
        </div>
      </div>
    </div><!-- /nav_main1 -->
    <header>
        <div class="hidden-xs header" id="index_logo"><!--超小屏幕不显示-->
            <h1 class="logo"> 
                <a href="__APP__" title="摆渡社区 - POWERED BY WY ALL RIGHTS RESERVED"></a> 
            </h1>
            <ul class="nav hidden-xs-nav">
                <li class="active">
                    <a href="__APP__">
                        <span class="glyphicon glyphicon-home"></span>网站首页
                    </a>
                </li>
                <li>
                    <a href="<{:U('Experience/index')}>">
                        <span class="glyphicon glyphicon-erase"></span>发布经验
                    </a>
                </li>
                <li>
                    <a href="<{:U('Pers/index')}>">
                        <span class="glyphicon glyphicon-inbox"></span>个人中心
                    </a>
                </li>
                <li>
                    <a href="<{:U('Show/index')}>">
                        <span class="glyphicon glyphicon-globe"></span>分享达人秀
                    </a>
                </li>
                <li>
                    <a href="about.html">
                        <span class="glyphicon glyphicon-user"></span>关于我们
                    </a>
                </li>
                <li>
                    <a href="<{:U('Admin/Index/index')}>" target="_blank">
                        <span class="glyphicon glyphicon-tags"></span>后台管理
                    </a>
                </li>
            </ul>
            <div class="feeds"> 
                <a class="feed feed-xlweibo" href="" target="_blank">
                    <i></i>新浪微博
                </a> 
                <a class="feed feed-txweibo" href="" target="_blank">
                    <i></i>腾讯微博
                </a> 
                <a class="feed feed-rss" href="" target="_blank">
                    <i></i>订阅本站
                </a> 
                <a class="feed feed-weixin" data-toggle="popover" data-trigger="hover" title="微信扫一扫" data-html="true" data-content="<img src='./Public/images/weixin.jpg' alt=''>" href="javascript:;" target="_blank">
                    <i></i>关注微信
                </a> 
                </div>
                <div class="wall">
                    <a href="readerWall.html" target="_blank">读者墙</a>
                     | 
                    <a href="tags.html" target="_blank">标签云</a>
                </div>
          </div>
          <!--/超小屏幕不显示-->
          <div class="visible-xs header-xs"><!--超小屏幕可见-->
            <div class="navbar-header header-xs-logo">
              <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#header-xs-menu" aria-expanded="false" aria-controls="navbar"><span class="glyphicon glyphicon-menu-hamburger"></span></button>
            </div>
            <div id="header-xs-menu" class="navbar-collapse collapse">
              <ul class="nav navbar-nav header-xs-nav">
                <li class="active"><a href="index.html"><span class="glyphicon glyphicon-home"></span>网站首页</a></li>
                <li><a href=""><span class="glyphicon glyphicon-erase"></span>网站前端</a></li>
                <li><a href=""><span class="glyphicon glyphicon-inbox"></span>后端技术</a></li>
                <li><a href=""><span class="glyphicon glyphicon-globe"></span>管理系统</a></li>
                <li><a href="about.html"><span class="glyphicon glyphicon-user"></span>关于我们</a></li>
                <li><a href="friendly.html"><span class="glyphicon glyphicon-tags"></span>友情链接</a></li>
              </ul>
              <form class="navbar-form" action="<{:U('Search/index')}>" method="get" style="padding:0 25px;">
                <div class="input-group">
                  <input type="text" class="form-control" placeholder="请输入关键字" name="text">
                  <span class="input-group-btn">
                  <button class="btn btn-default btn-search" type="submit">搜索</button>
                  </span> </div>
              </form>
            </div>
        </div>
    </header>
  <!--/超小屏幕可见-->

  <div class="content-wrap"><!--内容-->
    <div class="content">
    <block name="content">
      <div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> <!--banner-->
        <ol class="carousel-indicators">
            <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
            <li data-target="#carousel-example-generic" data-slide-to="1"></li>
            <li data-target="#carousel-example-generic" data-slide-to="2"></li>
        </ol>
        <div class="carousel-inner" role="listbox">
          <div class="item active"> <a href="<{$banner[0][url]}>" target="_blank"><img src="__ROOT__<{$banner[0][path]}>" alt="" onerror="onerror=null;src='__PUBLIC__/Uploads/error_banner.png'"/></a>
            <div class="carousel-caption"> <{$banner[0][title]}> </div>
            <span class="carousel-bg"></span> </div>
          <div class="item"> <a href="__ROOT__<{$banner[1][url]}>" target="_blank"><img src="__ROOT__<{$banner[1][path]}>" alt="" onerror="onerror=null;src='__PUBLIC__/Uploads/error_banner.png.jpg'"/></a>
            <div class="carousel-caption"> <{$banner[1][title]}> </div>
            <span class="carousel-bg"></span> </div>
          <div class="item"> <a href="__ROOT__<{$banner[2][url]}>" target="_blank"><img src="__ROOT__<{$banner[2][path]}>" alt="" onerror="onerror=null;src='__PUBLIC__/Uploads/error_banner.png'"/></a>
            <div class="carousel-caption"> <{$banner[2][title]}></div>
            <span class="carousel-bg"></span> </div>
        </div>
        <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div>
      <!--/banner-->
      <!-- 热门经验 -->
      <div class="content-block hot-content hidden-xs">
        <h2 class="title"><strong>本周热门经验</strong><span class="pull-right pointer"><strong id="change"><span class="glyphicon glyphicon-refresh"></span>换一下</strong></span></h2>
        <div id="hot_experience">
        <if condition="$experience eq null">
        暂无本周热门，快去发表吧~
        </if>
          <volist name="experience" id="vo">
            <ul>
              <li >
                <span class="hot_experience"><a href="<{:U('Content/index',array('id'=>$vo['id']))}>" target="_blank"><img src="__ROOT__<{$vo._s_picture}>" alt="" onerror="onerror=null;src='__PUBLIC__/Uploads/error.jpg'"></a>
                  <h3> <div class="mt3"><span class="overflow"><b>·&nbsp;</b><a href="<{:U('Content/index',array('id'=>$vo['id']))}>" target="_blank"><{$vo.title}> </a></span><br>
                  &nbsp;&nbsp;&nbsp;<span class="qianse"><a href="<{:U('Pers/index',array('uid'=>$vo['uid']))}>" target="_blank"><{$vo.uname}></a></span><span class="pull-right none qianse"><span class="glyphicon glyphicon-hand-right none"></span>&nbsp;有用（<{$vo.g_count}>）</span></div>
                  </h3>
                  </span>
                </li>
            </ul>
          </volist>
        </div>
        
      </div>
      <!-- 最新经验 -->
      <div class="content-block new-content">
        <h2 class="title"><strong>最新分享</strong></h2>
        <div class="row" id="new_experience">
          <!-- 一行开始 -->
          <volist name="new_experience" id="new_vo">
          <div class="news-list">
            <div class="news-img col-xs-5 col-sm-5 col-md-4"> <a target="_blank" href="<{:U('Content/index',array('id'=>$new_vo['id']))}>"><img src="__ROOT__<{$new_vo._s_picture}>" alt="" onerror="onerror=null;src='__PUBLIC__/Uploads/error.jpg'"> </a> </div>
            <div class="news-info col-xs-7 col-sm-7 col-md-8">
              <dl>
                <dt> <a href="<{:U('Content/index',array('id'=>$new_vo['id']))}>" target="_blank" class="new_title"> <{$new_vo.title}> </a> </dt>
                <dd><span class="name"><a href="<{:U('Pers/index',array('uid'=>$new_vo['uid']))}>" class="user_id" target="_blank" title="<{$new_vo.uname}>的主页" rel="author"><{$new_vo.uname}></a></span> <span class="identity"></span> <span class="time pull-right"> <{$new_vo.ctime}></span></dd>
                <dd class="text"><{$new_vo.intro}></dd>
              </dl>
              <div class="news_bot col-sm-7 col-md-8"> <span class="tags visible-lg visible-md"> <a href="">收藏</a> </span> <span class="look"> <span class="glyphicon glyphicon-hand-right"></span>&nbsp;有用（<{$new_vo.g_count}>） </span> </div>
            </div>
          </div>
          </volist>

        </div>
        <div class="news-more" id="pagination">
          <a>查看更多</a>
        </div>

      </div>
    </block>
    </div>
  </div>
  <!--/内容-->


    <aside class="sidebar visible-lg"><!--右侧>992px显示-->
    <block name="right">
      <if condition="($_SESSION['user'] eq null) ">
          <div class="sentence">亲,您还没有登录哦~ 前往
            <a href="<{:U('Login/index')}>" id="goLogin">登录</a> | 

            <a href="<{:U('User/index')}>">注册</a>

        </div>
      <else />
          <div class="welcome">
            <strong id="strong_l">
                <span class="glyphicon glyphicon-home"></span> 欢迎回来~<{$user_info.nickname}>
            </strong>
            <div class="person_menu">
                <strong id="strong_r">我的菜单 <span class="glyphicon glyphicon-chevron-down"></span></strong>
                <ul class="top_menu">
                    <li><a href="<{:U('Home/Pers/index')}>">个人中心 <span class="glyphicon glyphicon-user"></span></a></li>
                    <li><a href="<{:U('Admin/Index/index')}>">前往后台 <span class="glyphicon glyphicon-pencil"></span></a></li>
                    <li><a href="<{:U('Home/Index/logout')}>">注销登录 <span class="glyphicon glyphicon-off"></span></a></li>
                </ul>
            </div>
            <br/>
            <div class="photo">
                    <p>
                    <a href="<{:U('Pers/index')}>"> 
                        <if condition="($thumbpath eq null)">
                        <img src="__ROOT__/Public/images/nothing.jpg">
                        <else />
                        <img src="__ROOT__<{$thumbpath}>" onerror="onerror=null;src='__PUBLIC__/images/nothing.jpg'">
                        </if>
                    </a> 
                    <div>
                        <br/>
                        <span class="my_fans">我的粉丝: <{$fans}> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><br/>
                        <span class="my_watch">我的关注: <{$faned}> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                    </div>
                        

                    </p>
            </div>
            <div class="my_rewards">
                <span class="my_info ml5"> 我的金币: <a href="" id="my-gold"><{$gold}> </a> </span>
                <span class="my_info2 ml5"> 当前境界: <a href=""><{$design}> Lv.<{$level}></a> </span>
            </div>
        </div>
      </if>

        </block>
        <div class="sentence"> 
        <if condition="($_SESSION['user']['register'] eq null) OR ($_SESSION['user'] eq null)">
        <strong id="register-title">每日签到</strong>
        <else/>
        <strong id="register-title" class="registered-bg">每日签到</strong>
        </if>


            <if condition="($_SESSION['user'] eq null)">
            <span class="register-btn" id="register"  onclick="goLogin()">
                <div class="register-left">
                    <p><{:date('Y年')}></p>
                    <p><{:date('m月d日')}></p>
                </div>
                <a>签到</a>
                <div class="register-right">
                <span>累计签到</span>
                <b id="register-num">0</b>次
                </div>
            </span>
            <else/>
              <if condition="$_SESSION['user']['register'] eq 'registered'">
              <span class="registered-btn" id="register"  onclick="register(this)">
              <else/>
              <span class="register-btn" id="register"  onclick="register(this)">
              </if>
              <div class="register-left">
                      <p><{:date('Y年')}></p>
                      <p><{:date('m月d日')}></p>
                  </div>
                  <a><{$_SESSION['user']['register']=='registered'?'已签到':'签到'}></a>
                  <div class="register-right">
                  <span>累计签到</span>
                  <b id="register-num"><{$_SESSION['user']['register_num']}></b>次
                  </div>
              </span>
            </if>



        </div>
        <div id="search" class="sidebar-block search" role="search">
          <h2 class="title"><strong>搜索</strong></h2>
          <form class="navbar-form" action="<{:U('Search/index')}>" method="get">
            <div class="input-group">
              <input type="text" class="form-control" size="35" placeholder="请输入关键字" name="text">
              <span class="input-group-btn">
              <button class="btn btn-default btn-search" type="submit">搜索</button>
              </span> </div>
          </form>
        </div>
        <block name="show_man">
        <div class="sidebar-block recommend">
          <h2 class="title"><strong>我的经验</strong></h2>
          <ul>
              <?php if (!empty($_SESSION['user']['uid'])): ?>
                <empty name="my_experience">
                暂无经验哦~，<a class="btn-success btn btn-sm" href="<{:U('Experience/index')}>"> 去发布 </a>
                </empty>
                <notempty name="my_experience">
                <volist name="my_experience" id="my_vo">
                    <li><a target="_blank" href="<{:U('Home/Content/index',array('id'=>$my_vo['id']))}>"> <span class="thumb"><img src="__ROOT__<{$my_vo._s_picture}>" alt="" onerror="onerror=null;src='__PUBLIC__/Uploads/error.jpg'"></span> <span class="text"><{$my_vo.title}></span> <span class="text-muted">阅读(<{$my_vo.reader}>)</span></a>
                    </li>
                </volist>
                </notempty>
                </if>
              <?php else: ?>
                尚未登陆~<a href="<{:U('Login/index')}>" class="btn btn-sm btn-info">登陆</a>&nbsp;&nbsp;<a href="<{:U('User/index')}>" class="btn btn-sm  btn-info">注册</a>
              <?php endif ?>
              


          </ul>
        </div>
        <div class="sidebar-block comment">
          <h2 class="title"><strong>分享达人</strong></h2>
          <ul>
          <volist name="show_man" id="show_man_vo">
            <li data-toggle="tooltip" data-placement="top" title="<{$show_man_vo.name}>的空间"><a target="_blank" href="<{:U('Pers/index',array('uid'=>$show_man_vo['uid']))}>"><span class="face"><img src="__ROOT__<{$show_man_vo.thumbpath}>" onerror="onerror=null;src='__PUBLIC__/images/nothing.jpg'" alt=""></span> <span class="text"><strong><{$show_man_vo.name}></strong><span class="pull-right">粉丝：<{$show_man_vo.fans}></span><br />
              <{$show_man_vo.signature}></span></a></li>
          </volist>
          </ul>
        </div>
        </block>
    </aside>


  <!--/右侧>992px显示-->
  <footer class="footer">POWERED BY &copy;<a href="">摆渡 </a> ALL RIGHTS RESERVED &nbsp;&nbsp;&nbsp;<span><a href="http://www.miitbeian.gov.cn/" target="_blank">豫ICP备15026801号-1</a></span> <span style="display:none"><a href="">网站统计</a></span> </footer>

</section>

<div><a href="javascript:;" class="gotop" style="display:none;"></a></div>
<!--/返回顶部--> 


<script src="__PUBLIC__/js/jquery-2.1.4.min.js" type="text/javascript"></script> 
<script src="__PUBLIC__/js/nprogress.js" type="text/javascript" ></script> 
<script src="__PUBLIC__/js/bootstrap.min.js" type="text/javascript"></script> 

<script type="text/javascript">

$(function(){
        var originalCurhaha = $("#nav_main1 li.current");
        $("#nav_main1 li").mouseover(function(){
          $("#nav_main1 li").removeClass("current");  
          $(this).addClass("current");    
          $(this).children(".lm").show();
        });
        $("#nav_main1 li").mouseout(function(){
          $(this).removeClass("current"); 
          $(this).children(".lm").hide();
          originalCurhaha.addClass("current");
        });

        $('#strong_r').click(function(){
                // $(this).next('ul').slideToggle(500);
                if ($(this).next('ul').is(':hidden')) {
                    // $(this).next('ul').show();
                    $(this).next('ul').slideDown();
                }else{
                    $(this).next('ul').slideUp();
                };
            })
    })
//页面加载
$('body').show();
$('.version').text(NProgress.version);
NProgress.start();
setTimeout(function() { NProgress.done(); $('.fade').removeClass('out'); }, 1000);
//返回顶部按钮
$(function(){
  $(window).scroll(function(){
    if($(window).scrollTop()>100){
      $(".gotop").fadeIn(); 
    }
    else{
      $(".gotop").hide();
    }
  });
  $(".gotop").click(function(){
    $('html,body').animate({'scrollTop':0},500);
  });
});
//提示插件启用
$(function () {
  $('[data-toggle="popover"]').popover();
});
$(function () {
  $('[data-toggle="tooltip"]').tooltip();
});
//鼠标滑过显示 滑离隐藏
$(function(){
  $(".carousel").hover(function(){
    $(this).find(".carousel-control").show();
  },function(){
    $(this).find(".carousel-control").hide();
  });
});
// $(function(){
//   $(".hot-content ul li").hover(function(){
//     $(this).find("h3").show();
//   },function(){
//     $(this).find("h3").hide();
//   });
//页面元素智能定位
$.fn.smartFloat = function() { 
  var position = function(element) { 
    var top = element.position().top; //当前元素对象element距离浏览器上边缘的距离 
    var pos = element.css("position"); //当前元素距离页面document顶部的距离
    $(window).scroll(function() { //侦听滚动时 
      var scrolls = $(this).scrollTop(); 
      if (scrolls > top) { //如果滚动到页面超出了当前元素element的相对页面顶部的高度 
        if (window.XMLHttpRequest) { //如果不是ie6 
          element.css({ //设置css 
            position: "fixed", //固定定位,即不再跟随滚动 
            top: 0 //距离页面顶部为0 
          }).addClass("shadow"); //加上阴影样式.shadow 
        } else { //如果是ie6 
          element.css({ 
            top: scrolls  //与页面顶部距离 
          });     
        } 
      }else { 
        element.css({ //如果当前元素element未滚动到浏览器上边缘，则使用默认样式 
          position: pos, 
          top: top 
        }).removeClass("shadow");//移除阴影样式.shadow 
      } 
    }); 
  }; 
  return $(this).each(function() { 
    position($(this));                          
  }); 
}; 
//启用页面元素智能定位
$(function(){
  $("#search").smartFloat();
});
</script>

<block name="classify_js">

<script>
//异步加载更多内容
    var offset2 = 1;
$("#pagination a").click(function()
{   
    var content = $('#new_experience').children();
    $.ajax({
        type:'get',
        url:'<{:U('Index/new_experience')}>',
        async:false,
        data:"offset2=" + offset2,
        success:function(new_data){
          if (new_data == null ){
            $('#pagination').replaceWith('<div class="news-more" id="pagination">已无更多</div>');
          }
            offset2 ++;
            //将父类信息 追加到 下拉框中
            //先清空原先的数据
            // //遍历父类数据
            for (var i = 0; i < new_data.length; i++) {
                $('<div class="news-list"><div class="news-img col-xs-5 col-sm-5 col-md-4"> <a target="_blank" href="123"><img src="__ROOT__'+new_data[i]._s_picture+'" alt="" > </a> </div><div class="news-info col-xs-7 col-sm-7 col-md-8"><dl><dt> <a href="" target="_blank" class="new_title"> '+new_data[i].title+' </a> </dt><dd><span class="name"><a href="" title="'+new_data[i].uname+'的主页" rel="author" target="_blank" class="user_id">'+new_data[i].uname+'</a></span> <span class="identity"></span> <span class="time pull-right">'+new_data[i].ctime+'</span></dd><dd class="text">'+new_data[i].intro+'</dd></dl><div class="news_bot col-sm-7 col-md-8"> <span class="tags visible-lg visible-md"> <a href="">收藏</a> </span> <span class="look"> <span class="glyphicon glyphicon-hand-right"></span>&nbsp;有用（'+new_data[i].g_count+'） </span> </div></div>').appendTo('#new_experience');
                var length = $('.news-list .news-img a').length;
                var n = length - 1;
                $('.news-list .news-img a').eq(n).attr('href','__ROOT__/index.php/Home/content/index/id/'+new_data[i].id+'');
                var href = $('.news-list .news-info .new_title').eq(n).attr('href','__ROOT__/index.php/Home/content/index/id/'+new_data[i].id+'');
                var href = $('.news-list .news-info dl .user_id').eq(n).attr('href','__ROOT__/index.php/Home/Pers/index/uid/'+new_data[i].uid+'');

            };

        },
        dataType:'json',
    })
});
</script>

<script type="text/javascript">
// 标题滚动
    setInterval(setInterval(function(){
        // 获取title中的内容
        var titleStr = document.title;
        // 取第一个字符
        var firstChar = titleStr.charAt(0);
        // 截取出 除了第一个字符以外的所有字符
        var lastChar = titleStr.substr(1);
        // 重写拼装好的字串赋值给titile
        document.title = lastChar + firstChar;
    },300),100)
</script>

<!-- 换一下 -->
<script type="text/javascript">
    var offset = 1;
    $('#change').click(function(){
      var content = $('#hot_experience').children();
      console.log(offset);
      $.ajax({
          type:'get',
          url:'<{:U('Index/hot_experience')}>',
          async:false,
          data:"offset=" + offset,
          success:function(data){
              offset ++;
              if (offset == 2) {
                offset = 0;
              }
              //将父类信息 追加到 下拉框中
              //先清空原先的数据
              $('#hot_experience').empty();
              // //遍历父类数据
              // $('<option value= -1>请选择</option>').appendTo('#one');
              for (var i = 0; i < data.length; i++) {
                  $('<ul><li ><span class="hot_experience"><a href="" target="_blank" class="picture_href"><img src="__ROOT__'+data[i]._s_picture+'" alt=""></a><h3> <div class="mt3"><span class="overflow"><b>·&nbsp;</b><a href="" target="_blank">'+data[i].title+'</a></span><br>&nbsp;&nbsp;&nbsp;<span class="qianse"><a href="" target="_blank" class="user_href">'+data[i].uname+'</a></span><span class="pull-right none qianse"><span class="glyphicon glyphicon-hand-right none"></span>&nbsp;有用（'+data[i].g_count+'）</span></div></h3></span></li></ul>').appendTo('#hot_experience');
                  $('#hot_experience h3 .overflow a').eq(i).attr('href','__ROOT__/index.php/Home/content/index/id/'+data[i].id+'');
                  $('#hot_experience .picture_href').eq(i).attr('href','__ROOT__/index.php/Home/content/index/id/'+data[i].id+'');
                  $('#hot_experience .user_href').eq(i).attr('href','__ROOT__/index.php/Home/Pers/index/id/'+data[i].uid+'');
              };

          },
          dataType:'json',
      })
    });
</script>

</block>
<script type="text/javascript">
// 签到
    function register(obj){
        $.ajax({
            type:'post',
            url:"<{:U('Index/register')}>",
            dataType:'json',
            success:function(data){
                $('#register').addClass('registered-bg');
                $('#register-title').addClass('registered-bg');
                var num = parseInt($('#register-num').text())+1;
                var gold = parseInt($('#my-gold').text())+5
                $('#register-num').html(data.num);
                $('#my-gold').html(data.gold);
                alert(data.msg);
            },
        })
    }
    function goLogin(){
      $('#goLogin').addClass('goLogin');
      setTimeout(function(){
        $('#goLogin').fadeIn(1000);
        
      },10);
    }
</script>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":["mshare","qzone","tsina","weixin","renren","tqq","youdao","mail","isohu","yaolan","wealink","ty","iguba","fbook","twi","linkedin","h163","evernotecn","copy","print"],"bdPic":"","bdStyle":"1","bdSize":"32"},"slide":{"type":"slide","bdImg":"2","bdPos":"right","bdTop":"67.5"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":[]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>

</body>
</html>
